<template>
  <div>
    父组件
    <button @click="visible = true">显示弹层</button>
    <BaseDialog v-model="visible" />


    <!-- <BaseDialog :visible="visible" @update:visible="visible = $event" /> -->

    <BaseDialog :visible.sync="visible" />
  </div>
</template>

<script>
import BaseDialog from './components/BaseDialog.vue'
export default {
  components: {
    BaseDialog
  },
  data() {
    return {
      visible: false
    }
  },
  methods: {

  }
}
</script>

<style></style>
